package codename.carrot.bomberman.models;

import codename.carrot.bomberman.BitmapFactory;
import codename.carrot.bomberman.R;
import codename.carrot.bomberman.game.listener.ObstacleListener;
import sheep.graphics.Image;

/**
 * Class for objects of type Boulder. Boulders does not animate. 
 * @author Group A4
 * @see {@link codename.carrot.bomberman.models.AbstractObstacle} - the class extended by Boulder
 */
public class Boulder extends AbstractObstacle {    
	
	/**
	 * Class constructor. 
	 * @param xCoor - X-coordinates where the boulder will be placed.
	 * @param yCoor - Y-coordinates where the boulder will be placed.
	 * @param listener - attached listener. 
	 */
	public Boulder(int xCoor, int yCoor, ObstacleListener listener) {
		super(xCoor, yCoor, BitmapFactory.buildBoulderImage(), listener);
		setVisible(true);
	}

    
    /**
     * Can be used to check whether the boulder can be exploded. Always false. 
     */
	@Override
    public boolean isDestructible() {
        return false;
    }
}
